<div class="d1">
<form action="" method="post" class="fm1">
<div class="right">
    <div class="line">个人资料</div>
    <div class="pos">
        <div class="sp1">
            <form method="post" action="<?=Portal_Urls::ajax_upload_url()?>" enctype="multipart/form-data" id="frm2">
                <span class="sp2">上传照片</span>
                <input type="file" size="1" class="fil" name="file" id="fil"/>
                <input type="submit" value="d"/>
            </form>
            <img class="ig1" src="<?php echo $user['head_pic_path'];?>" alt="<?php echo $user['real_name'];?>" />
        </div>
        <label>姓名:</label>
        <span><?php echo $user['real_name'];?></span>
        <a href="javascript:void(0);" onclick="edit()" id="a_edit" class="a_edit">编辑资料</a>
    </div>
    <div>
        <label>英文名:</label>
        <span class="show"><?php echo $user['english_name'];?></span>
        <span class="hide"><input name="english_name" value="<?php echo $user['english_name'];?>" /></span>
    </div>
    <div>
        <label>工号:</label>
        <span><?php echo $user['user_code'];?></span>
    </div>
    <div>
        <label>手机:</label>
        <span class="show"><?php echo $user['cellphone'];?></span>
        <span class="hide"><input name="cellphone" value="<?php echo $user['cellphone'];?>" /></span>
    </div>
    <div>
        <label>公司电话:</label>
        <span class="show"><?php echo $user['office_phone'],$user['office_phone_ex'];?></span>
        <span class="hide"><input class="inp1" name="office_phone" value="<?php echo $user['office_phone'];?>" />-<input  class="inp2" name="office_phone_ex" value="<?php echo $user['office_phone_ex'];?>" /></span>
    </div>
    <div>
        <label>公司邮箱:</label>
        <span><?php echo $user['office_mail'];?></span>
        <!--<span class="hide"><input name="office_mail" value="<?php echo $user['office_mail'];?>" /></span>-->
    </div>
    <div class="line1"></div>
    <div><label>部门:</label><span><?php echo $user['bu_name'];?></span></div>
    <div><label>职位:</label><span><?php echo $user['position_name'];?></span></div>
    <div><label>直属上级:</label><span><?php echo $derector_direct_yes['parent_name'];?></span></div>
    <?php if($sub_users){?>
    <div>
        <label>直属下级:</label>
        <?php foreach($sub_users as $one){?>
        <span><?php echo $one['real_name'];?></span>
        <?php }?>
    </div>
    <?php }?>
    <?php if(!empty($derector_direct_no)){?>
    <div>
        <label>虚线主管:</label>
        <?php foreach ($derector_direct_no as $direct){?>
        <span><?php echo $direct['parent_name'];?></span>
        <?php }?>
    </div>
    <?php }?>
    <div class="hide edit_show" id="edit_show">
        <input type="submit" value="保 存" class="sub"/>
        <a href="javascript:void(0);" onclick="cancel()">取消</a>
    </div>
</div>
</form>
</div>